import java.util.Scanner;
public class student implements Comparable<Object>
{
        private int score;
        private String name;
        public student(int sc,String n)
        {
                score=sc;
                name=n;
        }

        public int getScore() {
                return score;
        }

        public String getName() {
                return name;
        }


        public int compareTo(Object other)
        {
                if(  other!=null && other instanceof student)
                {
                        student temp=(student) other;
                        if(score==temp.score)  return 0;
                        else if(score>temp.score) return 2;
                        else return -1;
                }
                else return -1;

        }


}
